import request from '@/utils/request'

// 查询合同退款列表
export function listContractRefund(query) {
  return request({
    url: '/manager/contract/contractRefund/list',
    method: 'get',
    params: query
  })
}

// 查询合同退款详细
export function getContractRefund(id) {
  return request({
    url: '/manager/contract/contractRefund/' + id,
    method: 'get'
  })
}

// 新增合同退款
export function addContractRefund(data) {
  return request({
    url: '/manager/contract/contractRefund',
    method: 'post',
    data: data
  })
}

// 修改合同退款
export function updateContractRefund(data) {
  return request({
    url: '/manager/contract/contractRefund',
    method: 'put',
    data: data
  })
}

// 删除合同退款
export function delContractRefund(id) {
  return request({
    url: '/manager/contract/contractRefund/' + id,
    method: 'delete'
  })
}

// 导出合同退款
export function exportContractRefund(query) {
  return request({
    url: '/manager/contract/contractRefund/export',
    method: 'get',
    params: query
  })
}

// 修改合同退款
export function approve (data) {
  return request({
    url: '/manager/contract/contractRefund/approve',
    method: 'post',
    data: data
  })
}
